package com.luotianacg.mode.strategyDesignPattern;

/**
 * @Author: luotian
 * @Date: 2023/4/5 21:54
 */
public class MainTest {
    public static void main(String[] args) {
        EraserDuck eraserDuck=new EraserDuck();
        eraserDuck.display();
        eraserDuck.fly();
        eraserDuck.setFlyBehavior(new FlyWithWings());
        eraserDuck.fly();
    }
}
